package za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Prototype.Factory;

import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.Prototype.Model.Person;
import za.ac.cput.peterjohn.DesignPatternPrincipals.creational.FactoryMethodPattern.Model.Dog;

public class PersonFactory 
{
    private static Person person = null;
    
    public static Person createPerson(String type) 
    {
        if(person == null)
            person = new Person(type);
        
        return person;
    }
}